package com.ruoyi.cat.service.impl;

import java.util.Collections;
import java.util.List;

import com.ruoyi.cat.domain.AdTicketClassify1;
import com.ruoyi.cat.mapper.AdTicketClassify1Mapper;
import com.ruoyi.cat.service.IAdTicketClassify1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 分类 大类Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-16
 */
@Service
public class AdTicketClassify1ServiceImpl implements IAdTicketClassify1Service
{
    @Autowired
    private AdTicketClassify1Mapper adTicketClassify1Mapper;

    /**
     * 查询分类 大类
     * 
     * @param id 分类 大类主键
     * @return 分类 大类
     */
    @Override
    public AdTicketClassify1 selectAdTicketClassify1ById(Long id)
    {
        return adTicketClassify1Mapper.selectAdTicketClassify1ById(id);
    }

    /**
     * 查询分类 大类列表
     * 
     * @param adTicketClassify1 分类 大类
     * @return 分类 大类
     */
    @Override
    public List<AdTicketClassify1> selectAdTicketClassify1List(AdTicketClassify1 adTicketClassify1)
    {
        return adTicketClassify1Mapper.selectAdTicketClassify1List(adTicketClassify1);
    }

    @Override
    public List<AdTicketClassify1> getClassifyData(AdTicketClassify1 adTicketClassify1) {
        return adTicketClassify1Mapper.getClassifyData(adTicketClassify1);
    }

    /**
     * 新增分类 大类
     * 
     * @param adTicketClassify1 分类 大类
     * @return 结果
     */
    @Override
    public int insertAdTicketClassify1(AdTicketClassify1 adTicketClassify1)
    {
        return adTicketClassify1Mapper.insertAdTicketClassify1(adTicketClassify1);
    }

    /**
     * 修改分类 大类
     * 
     * @param adTicketClassify1 分类 大类
     * @return 结果
     */
    @Override
    public int updateAdTicketClassify1(AdTicketClassify1 adTicketClassify1)
    {
        return adTicketClassify1Mapper.updateAdTicketClassify1(adTicketClassify1);
    }

    /**
     * 批量删除分类 大类
     * 
     * @param ids 需要删除的分类 大类主键
     * @return 结果
     */
    @Override
    public int deleteAdTicketClassify1ByIds(Long[] ids)
    {
        return adTicketClassify1Mapper.deleteAdTicketClassify1ByIds(ids);
    }

    /**
     * 删除分类 大类信息
     * 
     * @param id 分类 大类主键
     * @return 结果
     */
    @Override
    public int deleteAdTicketClassify1ById(Long id)
    {
        return adTicketClassify1Mapper.deleteAdTicketClassify1ById(id);
    }
}
